<input id ="id" type="hidden" value ="<?= isset($id)?$id:''?>">
<table>
  <caption> Alteraçao de Usuario</caption>
  <tr>
    <td>Matricula</td>
    <td><input id="matricula" value ="<?= isset($matricula)?$matricula:''?>"></td>
  </tr>
  <tr>
    <td>Nome</td>
    <td><input id="nome" value ="<?= isset($nome)?$nome:''?>" size =" 50"></td>
  </tr>
  <tr>
    <td>Nome de Tela</td>
    <td><input id="nome_tela" value ="<?= isset($nome_tela)?$nome_tela:''?>" size =" 50"></td>
  </tr>
  <tr>
    <td>Situaçao</td>
    <td>
      <input type ="radio" name =" ativo " id="ativoA" value="A" <?= isset($ativo)?(($ativo == 'A')?'checked':''):''; ?> > Ativo
      <input type ="radio" name =" ativo " id="ativoI" value="I" <?= isset($ativo)?(($ativo == 'I')?'checked':''):''; ?> > Inativo
    </td>
  </tr>
  <?php
  
  if (!(isset ($id)))
    echo"
  <tr>
    <td>Senha</td>
    <td>
      <input type ='password' name =' senha ' id='senha'>
    </td>
  </tr>
      
  ";
  
  ?>
</table>
<hr>
<div id="perfis"><?= $perfis?></div>


<div id ="botoes">
  <button type = 'button' onclick = 'salvar()'>Salvar</button>
  <?php
  
  if ((isset ($id)))
    echo"
  <button type = 'button' onclick = 'restaurar()'>Restaurar Senha</button> 
  ";
  
  ?>
  <button type = 'button' onclick = 'window.location.reload()'>Retornar</button>
</div>